// 查看拒绝理由

Page({

    data: {
        id: '',
        reason: '',
        sessionID: ''
    },

    onLoad(options) {
        this.setData({
            id: options.id,
            sessionID: wx.getStorageSync('sessionID')
        });

        wx.request({
            url: 'https://www.hschuangsai.com/message?messageId=' + this.data.id,
            method: 'GET',
            header: {
                'session': this.data.sessionID
            },
            success: (res) => {
                console.log("message success", res);
                this.setData({
                    reason: res.data.data
                })
            }
        });
    }
})
